package org.cx.oa.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * AbstractDepartment entity provides the base persistence definition of the
 * Department entity. @author MyEclipse Persistence Tools
 */

public class Department implements java.io.Serializable {

	// Fields

	private Integer departmentId;
	private Employee employee;
	private String departmentName;
	private String departmentPhone;
	private String departmentFax;
	private String departmentExp;
	private String abbreviation;
	private Set posts = new HashSet(0);
	private Set employees = new HashSet(0);

	// Constructors

	/** default constructor */
	public Department() {
	}

	/** minimal constructor */
	public Department(String departmentName, String departmentPhone,
			String departmentFax, String departmentExp, String abbreviation) {
		this.departmentName = departmentName;
		this.departmentPhone = departmentPhone;
		this.departmentFax = departmentFax;
		this.departmentExp = departmentExp;
		this.abbreviation = abbreviation;
	}

	/** full constructor */
	public Department(Employee employee, String departmentName,
			String departmentPhone, String departmentFax, String departmentExp,
			String abbreviation, Set posts, Set employees) {
		this.employee = employee;
		this.departmentName = departmentName;
		this.departmentPhone = departmentPhone;
		this.departmentFax = departmentFax;
		this.departmentExp = departmentExp;
		this.abbreviation = abbreviation;
		this.posts = posts;
		this.employees = employees;
	}

	// Property accessors

	public Integer getDepartmentId() {
		return this.departmentId;
	}

	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}

	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public String getDepartmentName() {
		return this.departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	public String getDepartmentPhone() {
		return this.departmentPhone;
	}

	public void setDepartmentPhone(String departmentPhone) {
		this.departmentPhone = departmentPhone;
	}

	public String getDepartmentFax() {
		return this.departmentFax;
	}

	public void setDepartmentFax(String departmentFax) {
		this.departmentFax = departmentFax;
	}

	public String getDepartmentExp() {
		return this.departmentExp;
	}

	public void setDepartmentExp(String departmentExp) {
		this.departmentExp = departmentExp;
	}

	public String getAbbreviation() {
		return this.abbreviation;
	}

	public void setAbbreviation(String abbreviation) {
		this.abbreviation = abbreviation;
	}

	public Set getPosts() {
		return this.posts;
	}

	public void setPosts(Set posts) {
		this.posts = posts;
	}

	public Set getEmployees() {
		return this.employees;
	}

	public void setEmployees(Set employees) {
		this.employees = employees;
	}

}